package web.req;

import org.springframework.web.multipart.MultipartFile;
import web.Request;

import javax.validation.constraints.NotNull;

/**
 * Created by liuchang on 2015/6/24.
 */
public class AvatarRequest extends Request {
    private long id;
    @NotNull(message = "{file.cannot.be.null}")
    private MultipartFile file;

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
}
